Skip to content

Stream TAP output line by line#68

Merged
rical merged 1 commit into
masterfrom
line-buffering
May 5, 2026
Merged

Stream TAP output line by line#68
rical merged 1 commit into
masterfrom
line-buffering

Conversation

@rical
Copy link
Copy Markdown
Owner

@rical rical commented May 5, 2026

Spawn each test with stdout connected to a pty so its stdio sees a TTY and line-buffers, instead of block-buffering through a pipe.

Without this, TAP lines were held in the child's stdio buffer and arrived in chunks. Sometimes creating the illusion that the execution had stalled.

Also line-buffer 9pm's own stdout so output streams when 9pm itself is piped to another program.

Add a self-test for this.

Spawn each test with stdout connected to a pty so its stdio sees a TTY
and line-buffers, instead of block-buffering through a pipe.

Without this, TAP lines were held in the child's stdio buffer and
arrived in chunks. Sometimes creating the illusion that the execution
had stalled.

Also line-buffer 9pm's own stdout so output streams when 9pm itself is
piped to another program.

Add a self-test for this.

Signed-off-by: Richard Alpe <richard@bit42.se>
@rical rical merged commit b660aa7 into master May 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant